<name>Abandoned Temple</name>
<profession>An old pyramid</profession>
<dialogue>
  <greeting>
    <reply>
      <text>You find an entrance at the top.</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>Explore the temple.</text>
      <npc>
        <reply>
          <text>You walk past an old mural.</text>
          <script>
            <scene>abandonedtemple_mural</scene>
          </script>
          <return>crystals</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Leave the temple.</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main>
  <crystals>
    <option>
      <if>
        <key>powercrystalsbooked</key>
        <key>!powercrystalsfound</key>
      </if>
      <text>Search the temple for power crystals.</text>
      <npc>
        <reply>
          <text>You have found some!</text>
          <script>
            <key>powercrystalsfound</key>
            <item>Power Crystals</item>
            <hours>3</hours>
            <quest>Power Crystals|You have the power crystals</quest>
            <log>Found power crystals in the Abandoned Temple</log>
          </script>
          <return>crystals</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Leave the temple.</text>
      <npc>
        <reply>
          <script>
            <scene>abandonedtemple</scene>
          </script>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </crystals>
</dialogue>